package com.secxiot.provider.narcotic.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 药品统计返回vo
 */
@ApiModel
@Data
@ToString
public class DrugsCountVo implements Serializable {

    @ApiModelProperty(value = "药品名称", required = true)
    private String drugsName;

    @ApiModelProperty(value = "药品名称数量", required = true)
    private Long drugsNum;

    @ApiModelProperty(value = "药品时间节点", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date drugsTime;

    @ApiModelProperty(value = "时间节点数量", required = true)
    private Long timeNum;
}
